package com.lisp.springframework.core.xml;

import java.util.Date;

import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * Hello world!
 *
 */
public class XmlApp 
{
    public static void main( String[] args ) {
        try(ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");) {            
            Date date = context.getBean(Date.class); 
            System.out.println(date);
            
            MyBean bean = context.getBean(MyBean.class);
            System.out.println(bean);
        }
    }
}
